<template>
	<view class="flex-column-c">
		<commonCar :list="goodsProducts" @delect="delect" @accounts="accounts"></commonCar>
		<image src="" mode=""></image>
	</view>
</template>

<script>
import commonCar from '@/components/shopCar/shopCar.vue';
	export default {
		data() {
			return {
				//checked 1为未选择 2为选中
				goodsProducts: [{
					// name: '华为旗舰店',
					// checked: 1,
					goods: [{
						img: 'http://47.96.2.66:8085/applet/upload/file/image/shop/cloth.png',
						title: '豹纹毛衣',
						price: 178,
						color:'咖色',
						size:'L',
						number: 1,
						checked: 1
					}, {
						img: 'http://47.96.2.66:8085/applet/upload/file/image/shop/paja.png',
						title: '小树熊套装',
						price: 39.9,
						color:'黑色',
						size:'XL',
						number: 1,
						checked: 1
					},
					{
						img: 'http://47.96.2.66:8085/applet/upload/file/image/shop/ultrama.png',
						title: '奥特曼马甲',
						price: 60,
						color:'灰色',
						size:'M',
						number: 1,
						checked: 1
					}
					// {
					// 	"id": "3",
					// 	"color": "",
					// 	"size": "",
					// 	"productId": "0",
					// 	"specifications": "",
					// 	"monovalent": "0.00",
					// 	"userId": "1",
					// 	"createTime": "2024-04-09 14:58:51",
					// 	"productNumber": 0,
					// 	"productName": "",
					// 	"indexImg": "",
					// },
					]
				}],
			}
		},
		components: {
			commonCar
		},
		//请求参数
		// const goods_params = reactive({
		// 	current: 1,
		// 	size: 6
		// })
		methods: {
			delect(e){
				console.log(e);
			},
			accounts(e){
				console.log(e);
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #f7f7f7;
	}
</style>
